﻿using InDepth2Demo.Chapter1.C14;
using System.Collections.Generic;

namespace InDepth2Demo.Chapter1.C22
{
    internal class ProductNameComparer : IComparer<Product>
    {
        public int Compare(Product x, Product y)
        {
            return x.Name.CompareTo(y.Name);
        }
    }
}
